package com.linwen.dataStructure.list.linkList;

import java.util.LinkedList;
import org.junit.Test;

public class LinkedListTest {
	@Test
	public void testLinkedList() {
		LinkedList<Integer> linkedList = new LinkedList<>();
		linkedList.add(1);
		linkedList.add(2);
		linkedList.add(3);
		while(!linkedList.isEmpty()) {
			System.out.println(linkedList.removeFirst());
		}
		
	}
}
